﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewMovieScheduleUserControl.ascx.cs" Inherits="MBS.UserControls.MovieScheduleUserControl.ViewMovieScheduleUserControl" %>

<table>
    <tr>
        <td width="10%"> <asp:Label ID="movieLabel" CssClass="label" runat="server" Text="Movie"></asp:Label>
      </td>
        <td width="90%">
            <asp:DropDownList ID="MovieDropDownList" runat="server" AutoPostBack="true"
                onselectedindexchanged="MovieDropDownList_SelectedIndexChanged" 
                 Width="146px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td> <asp:Label ID="cinemaLabel" CssClass="label" runat="server" Text="Cinema"></asp:Label>
       </td>
        <td>
            <asp:DropDownList ID="CinemaDropDownList" runat="server" AutoPostBack="true"
                onselectedindexchanged="CinemaDropDownList_SelectedIndexChanged" 
                Width="146px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>  <asp:Label ID="theatreLabel" CssClass="label" runat="server" Text="Screen"></asp:Label>
     </td>
        <td>
            <asp:DropDownList ID="ScreenDropDownList" runat="server" AutoPostBack="true"
                onselectedindexchanged="ScreenDropDownList_SelectedIndexChanged" 
                 Width="146px">
            </asp:DropDownList>
        </td>
    </tr>
    
    <tr>
    <td></td>
        <td>
            
            <asp:GridView ID="MovieScheduleGridView" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" CellPadding="4" 
                DataKeyNames="MovieScheduleID" DataSourceID="MovieScheduleEntityDataSource" 
                ForeColor="#333333" GridLines="None" 
                OnRowDeleting="MovieScheduleGridView_RowDeleting">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:BoundField DataField="MovieScheduleID" HeaderText="ID" 
                        ReadOnly="True" SortExpression="MovieScheduleID" />
                    <asp:BoundField DataField="StartDate" HeaderText="Start Date" 
                        SortExpression="StartDate" DataFormatString="{0:D}" />
                    <asp:BoundField DataField="EndDate" HeaderText="End Date" 
                        SortExpression="EndDate" DataFormatString="{0:D}" />
                    <asp:BoundField DataField="ShowStartTime" HeaderText="Start Time" 
                        SortExpression="ShowStartTime" DataFormatString="{0:T}" />
                    <asp:BoundField DataField="ShowEndTime" HeaderText="End Time" 
                        SortExpression="ShowEndTime" DataFormatString="{0:T}" />
                    <asp:BoundField DataField="WeekDateFare" HeaderText="Weekday Fare" 
                        SortExpression="WeekDateFare" DataFormatString="{0:C2}" />
                    <asp:BoundField DataField="WeekEndFare" HeaderText="Weekend Fare" 
                        SortExpression="WeekEndFare" DataFormatString="{0:C2}" />
                
                    <asp:CommandField ShowDeleteButton="True" />
                
                </Columns>
                <EditRowStyle BackColor="#7C6F57" />
                <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#E3EAEB" />
                <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F8FAFA" />
                <SortedAscendingHeaderStyle BackColor="#246B61" />
                <SortedDescendingCellStyle BackColor="#D4DFE1" />
                <SortedDescendingHeaderStyle BackColor="#15524A" />
            </asp:GridView>
            <asp:EntityDataSource ID="MovieScheduleEntityDataSource" runat="server" 
                ConnectionString="name=MBS_Entities" DefaultContainerName="MBS_Entities" 
                EnableDelete="True" EnableFlattening="False" EnableInsert="True" 
                EnableUpdate="True" EntitySetName="MovieSchedules" 
                EntityTypeFilter="MovieSchedule">
            </asp:EntityDataSource>
            
        </td>
    </tr>
</table>